package com.example.onlinemusic.mapper;

import com.example.onlinemusic.model.User;

import org.apache.ibatis.annotations.Mapper;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: H_tao_X
 * Date: 2022-08-05
 * Time: 17:04
 */
@Mapper
public interface UserMapper {
    // 登录功能
    User login(User loginUser);

    // 根据用户名查询是否存在用户
    User selectByName(String name);

    // 注册用户
    int insertUser(User user);
}
